const path = require('path');

function resolve(dir) {
	return path.join(__dirname, dir)
}
module.exports = {
	css: {
		loaderOptions: {
			less: {
				lessOptions: {
					modifyVars: {
						'primary-color': '#175EFE',
						'link-color': '#175EFE',
						'border-radius-base': '2px',
					},
					javascriptEnabled: true,
				},
			},
		},
	},
	pluginOptions: {
		"style-resources-loader": {
			preProcessor: 'less',
			patterns: [path.resolve(__dirname, './src/styles/global.less')]
		}

	},
};
